﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="search.aspx.cs" Inherits="cn_search" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>搜索</title>
<link href="css/uk.css" rel="stylesheet" type="text/css" />
<link href="css/thickbox.css" rel="stylesheet" type="text/css" />
<link href="css/jScrollPane.css" rel="stylesheet" type="text/css" />
<script src="js/jquery-1.3.2.js" language="javascript" type="text/javascript"></script>
<script src="js/swfobject.js" type="text/javascript"></script>
<script src="js/thickbox.js" language="javascript" type="text/javascript"></script>
<script src="js/jScrollPane.js" language="javascript" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="js/jquery.tab.js"></script>
<script src="js/uk.js" language="javascript" type="text/javascript"></script>
<script src="js/common.js" type="text/javascript"></script>
<script src="js/share.js" type="text/javascript"></script>
<script src="js/Search.js" type="text/javascript"></script>
<script src="js/bcwebtrends.js" type="text/javascript"></script>
<script src="../js/uknow_islogin.js" type="text/javascript"></script>
<script type="text/javascript" src="js/followus.js"></script>
<script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-27543073-4']);
    _gaq.push(['_trackPageview']);
    (function () {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();
    //    $(document).ready(function () {
    //        var tab = new $.fn.tab({
    //            tabList: "#results .ui-tab-container .ui-tab-list li",
    //            contentList: "#results .ui-tab-container .ui-tab-content",
    //            eventType: "click",
    //            showType: "fade"
    //        });
    //    })
</script>
</head>
<body>
<form id="formSearch" runat="server">

  <script type="text/javascript">

//<![CDATA[

      var theForm = document.forms['formSearch'];

      if (!theForm) {

          theForm = document.formSearch;

      }

      function __doPostBack(eventTarget, eventArgument) {

          if (!theForm.onsubmit || (theForm.onsubmit() != false)) {

              theForm.__EVENTTARGET.value = eventTarget;

              theForm.__EVENTARGUMENT.value = eventArgument;

              theForm.submit();

          }

      }

//]]>

</script>
<script type="text/javascript">
    $(document).ready(function () {

        if ($('#leixing').val() == 'pic') {
            $('#w_class').removeClass();
            $('#v_class').removeClass();
            document.getElementById('p_class').className = 'ui-tab-active';
            //alert($('#leixing').val());
            $('#dis_word').hide();
            $('#dis_video').hide();
            $('#dis_pic').fadeIn('slow');
        }

        if ($('#leixing').val() == 'video') {
            $('#w_class').removeClass();
            $('#p_class').removeClass();
            document.getElementById('v_class').className = 'ui-tab-active';
            //alert($('#leixing').val());
            $('#dis_word').hide();
            $('#dis_pic').hide();
            $('#dis_video').fadeIn('slow');
        }
    });
</script>
  <div id="main">
  <asp:HiddenField ID="leixing" Value="" runat="server" />
  <div class="ukContent">
  <div class="ukLeft">
      <div class="uklogo"><a href="home.html"><img src="images/UK_logo.gif" alt="UK NOW" border="0" /></a></div>
                <dl class="ukNav">
                    <dt class="over"><a href="home.html">
                        <img src="images/UK_nav01.gif" alt="首页" border="0" /><img src="images/UK_nav01_1_1.gif"
                            alt="首页" style="display: none" /></a></dt>
                    <dt class="over"><a href="aboutuknow.html">
                        <img src="images/UK_nav02.gif" alt="简介" border="0" /><img src="images/UK_nav02_1_1.gif"
                            alt="简介" style="display: none" /></a></dt>
                    <dt class="over"><a href="eventcalendar.html">
                        <img src="images/uk_nav04.gif" alt="活动安排" border="0" /><img src="images/uk_nav04_1_1.gif"
                            alt="活动安排" style="display: none" /></a></dt>
                    <dt class="over"><a href="interactivespace.aspx">
                        <img src="images/UK_nav05.gif" alt="发现英国元素" border="0" /><img src="images/UK_nav05_1_1.gif"
                            alt="发现英国元素" style="display: none" /></a></dt>
                    <dt class="over"><a href="sponsors.html">
                        <img src="images/UK_nav03.gif" alt="赞助商" border="0" /><img src="images/UK_nav03_1_1.gif"
                            alt="赞助商" style="display: none" /></a></dt>
                </dl>
      <dl class="ukSearch">
          <dt>
              <asp:TextBox ID="SearchLeft" runat="server" Text="搜索" onfocus="this.value=''"></asp:TextBox>
          </dt>
          <dd>
              <asp:LinkButton ID="lkbSearch" runat="server" OnClick="lkbSearch_Click"> <img src="images/UK_bor03.gif" alt="" border="0" /></asp:LinkButton>
          </dd>
      </dl>
      <%--      <dl class="ukSearch">
        <dt>
          <input name="" type="text" id="SearchValue" value="搜索" onfocus="this.value=''"/>
        </dt>
        <dd><a href="#"><img src="images/UK_bor03.gif" alt="" border="0" id="Search"/></a></dd>
      </dl>
--%>      <div id="leftbar_reg" class="leftbar_reg"></div>
      <div id="leftbar_talk" class="leftbar_talk">
      	<!--
          Flash "大家在讨论"
          弹出Flash页面的尺寸为：700px * 640px
          Flash中按钮调用的js代码为：          
          tb_show('','talk.html?keepThis=true&TB_iframe=true&height=630&width=671','');  
        -->
      </div>
      <div id="leftbar_impression"><a href="vote.html?keepThis=true&TB_iframe=true&height=604&width=576" class="thickbox"><img src="images/leftbar_impression.jpg" alt="" /></a></div>
      <script type="text/javascript">
          var fo = new FlashObject("swf/leftbar_reg.swf", "Flash", "155", "150", "9", "#ffffff");
          fo.addParam("menu", "false");
          fo.addParam("scale", "noscale");
          fo.addParam("wmode", "transparent");
          fo.write("leftbar_reg");
      </script>
      <script type="text/javascript">
          var fo = new FlashObject("swf/leftbar_talk.swf", "Flash", "155", "150", "9", "#ffffff");
          fo.addParam("menu", "false");
          fo.addParam("scale", "noscale");
          fo.addParam("wmode", "transparent");
          fo.write("leftbar_talk");
      </script>
    </div>
  <div class="ukRight">
      <div class="ukTopLink">
          <p>
              中文 <span>|</span> <a href="/en/search.aspx">EN</a></p>
                    <p class="share"><span>关注我们</span> <a href="javascript:;"><img src="images/UK_icon01_1.gif" id="sinaWeibo" alt="" /></a> <a href="javascript:;"><img src="images/UK_icon02_1.gif" alt="" id="kaixin" /></a> <a href="javascript:;"><img src="images/UK_icon03_1.gif" alt="" id="bouban" /></a> <a href="javascript:;"><img src="images/UK_icon04_1.gif" alt="" id="qqWebbo" /></a> <a href="http://page.renren.com/ibc" target="_blank"><img src="images/UK_icon12_1.gif" alt="" id="renren" /></a></p>
          <!--
        注释掉的代码是登录前状态，登录后变为一行代码 <acronym><span>Hytal</span>，欢迎来到艺述英国！<a href="#">[退出]</a></acronym>-->
          <dl id="L_out" style="display: none;">
              <dt><a href="register.aspx"><span>注册</span></a></dt>
              <dd>
                  <a href="login.html?keepThis=true&TB_iframe=true&height=290&width=472" class="thickbox">
                      <span>登录</span></a></dd>
          </dl>
          <acronym id="L_in" style="display: none;"><span id="nicName"></span>，欢迎来到艺述英国！<a
              href="#" onclick="logout();">[退出]</a></acronym>
      </div>
      <h1><img src="images/UK_title01.gif" alt="SEARCH RESULTS" /></h1>
  <div class="ukSearchbox">
                    <asp:TextBox ID="SearchTop" runat="server" Text=""></asp:TextBox>
                    <asp:LinkButton ID="lkbSearchTop" runat="server" OnClick="lkbSearchTop_Click"><img src="images/UK_Search_14.gif" /></asp:LinkButton>
  </div>
<%--  <div class="ukSearchbox">
    <input name="SearchTop" type="text" value="英国" id="SearchTop" />
    <a id="lkbSearchTop" href="javascript:__doPostBack('lkbSearchTop','')"><img src="images/UK_Search_14.gif" /></a> 
    </div>--%>
  <div class="clear"></div>
  <div class="finalresult">
  <h4> 找到相关文字结果 <%=wordCount %> 条，图片 <%=picCount %> 个，视频 <%=videoCount %> 个。</h4>
  <div id="results">
    <div class="ui-tab-container">
        <div class="turntype">
            <ul class="ui-tab-list">
                <li id="w_class" class='ui-tab-active'><asp:LinkButton ID="words" runat="server" 
                        onclick="words_Click">文字</asp:LinkButton></li>
                <li id="p_class"><asp:linkbutton ID="pic" runat="server" onclick="pic_Click">图片</asp:linkbutton></li>
                <li id="v_class"><asp:linkbutton ID="video" runat="server" onclick="video_Click" >视频</asp:linkbutton></li>
            </ul>
        </div>
        <div class="ui-tab-bd">
            <div class="ui-tab-content" id="dis_word">
            <%--文字内容开始--%>
            <%=searchResult %>
              <%--文字内容结束--%>
            </div>
            <div class="ui-tab-content" id="dis_pic" >
            <%--图片开始--%>
            
            <%=imgEventsResult%>
            
            
                <%--<ol class="result">
                
                <li><img src="images/element_temp_1.jpg" width="130" height="130" alt="" /><span>文字<font color=red>英国</font>文字<font color=red>英国</font>文字</span></li>
              </ol>
              
              <div class="resultpage">
                <ol>
                  <li><a href="#"><img src="images/icon_comment_pre.gif" alt="" /></a></li>
                  <li><a href="#">1</a></li>
                  <li><a href="#">2</a></li>
                  <li><a href="#">3</a></li>
                  <li><a href="#">4</a></li>
                  <li><a href="#">5</a></li>
                  <li><a href="#"><img src="images/icon_comment_next.gif" alt="" /></a></li>
                </ol>
              </div>
           --%>
           <%--图片结束--%>
             </div>
            <div class="ui-tab-content" id="dis_video" > 
            <%--视频开始--%>
            	
                <%--
                <dt><object width="200" height="130"><param name="movie" value="http://static.youku.com/qplayer.swf?playMode=mp4&amp;winType=index&amp;isShowRelatedVideo=false&amp;VideoIDS=XMzQxNjYxNDky"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always"><param name="wmode" value="opaque">
            <embed src="http://static.youku.com/qplayer.swf?playMode=mp4&amp;winType=index&amp;VideoIDS=XMzQxNjYxNDky" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="opaque" width="200" height="130"></object></dt>
                <dd><span><a href=../cn/prudential.html>创始赞助商</a></span>
                    <font color=red>英国</font>保诚集团（Prudential plc）是一家国际金融服务集团，业务运作主要集中在亚洲、美国和<font color=red>英国</font>。<font color=red>英国</font>保诚集团为超过2500万名客户提供服务，管理的资产达3495亿英镑（截止2011年6月30日）。<font color=red>英国</font>保诚集团是全世界最好的资本化保险公司之一，根据《保险集团准则》（IGD）计算资本盈余估计为41亿英镑*。...</dd>
                 --%>
                 <%=videoSeaResult%>
             
              <%--视频结束--%>
<%--              <div class="resultpage">
                <ol>
                  <li><a href="#"><img src="images/icon_comment_pre.gif" alt="" /></a></li>
                  <li><a href="#">1</a></li>
                  <li><a href="#">2</a></li>
                  <li><a href="#">3</a></li>
                  <li><a href="#">4</a></li>
                  <li><a href="#">5</a></li>
                  <li><a href="#"><img src="images/icon_comment_next.gif" alt="" /></a></li>
                </ol>
              </div>
--%>           
           </div>
          </div>
        </div>
      </div>
  </div>
  </div>
      <input type="hidden" id="hideSearchValue" name="hideSearchValue" runat="server" />
      <input type="hidden" id="hideSearchType" name="hideSearchType" runat="server" />
      <input type="hidden" id="hideType" name="hideType"  runat="server" />
      <input type="hidden" id="currIndex" name="currIndex" runat="server" />
  <%--<input name="hideSearchValue" type="hidden" id="hideSearchValue" />
  <input name="hideSearchType" type="hidden" id="hideSearchType" />--%>
  <div class="clear"></div>
  </div>
  <div id="footer">
    <dl>
      <dt><a href="http://www.britishcouncil.org.cn/zh/china.htm" target="_blank"><img src="images/UK_Search_56.gif" alt="" border="0" /></a></dt>
      <dd>
        <p><a href="http://www.britishcouncil.org.cn/zh/china.htm" target="_blank">英国大使馆文化教育处</a> | <a href="contactus.html">联系我们</a> | <a href="privacy.html?keepThis=true&TB_iframe=true&height=500&width=542" class="thickbox">隐私政策</a> | <a href="sitemap.html">网站地图</a></p>
      </dd>
    </dl>
  </div>
  </div>
</form>
<script type="text/javascript">

        //<![CDATA[

    var _tag = new WebTrends();

    _tag.fpcdom = ".uknow.org.cn";

    _tag.dcsGetId();

    //]]>>

</script> 
<script type="text/javascript">

    //<![CDATA[

    _tag.WT.sp = "China_uknow_search";

    _tag.dcsCollect();

    //]]>>

</script>
<noscript>
<div><img alt="DCSIMG" id="DCSIMG" width="1" height="1" src="http://statse.webtrendslive.com/dcsozkqgb00000sh0y1unaabw_9e3r/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=8.6.2"/></div>
</noscript>
</body>
</html>

